package com.youlu.campus.website.controller;

import com.youlu.campus.common.base.QResult;
import com.youlu.campus.website.entity.CampanyTopic;
import com.youlu.campus.website.service.CampanyTopicService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 公司主题控制层
 *
 * @author su
 * @date 2025/08/25
 */
@RestController
@RequestMapping("/api/campany/topic")
public class CampanyTopicController {

    @Resource
    private CampanyTopicService campanyTopicService;

    /**
     * 分页查询公司主题列表
     *
     * @return QResult<list < CampanyTopic>>
     */
    @GetMapping("/find-all")
    public QResult<List<CampanyTopic>> findAll() {
        return QResult.success(campanyTopicService.findAll());
    }
}